package com.czu;

import com.czu.service.impl.UserServiceImpl;
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;

public class Server {
    public static void main(String[] args) {

        JAXRSServerFactoryBean factoryBean = new JAXRSServerFactoryBean();
        factoryBean.setAddress("http://localhost:8080");
        factoryBean.setServiceBean(new UserServiceImpl());

        factoryBean.create();
        System.out.println("发布成功");
    }
}
